<template>
	<view class="lines-max">
		<view class="lines-max_item" v-for="index in 6" :key="index" @click="$rui.route('/pages/trip/detail/detail')">
			<view class="lines-max_item_top" v-if="index <= 10">
				<view class="lines-max_item_top_text">TOP</view>
				<view class="lines-max_item_top_number">0{{index}}</view>
			</view>
			<image class="lines-max_item_img" src="/static/images/lines.jpg" mode=""></image>
			<view class="lines-max_item_info">
				<view class="lines-max_item_info_detail">
					成都出发·跟团游·摄影旅游·6天5晚
				</view>
				<view class="lines-max_item_info_title">
					北疆纯玩10日游（2+1头等舱大巴 6大5A景区）穿越独库 天山天池 喀纳斯 禾木 魔鬼城 赛里木湖 那拉提 巴音布鲁克
				</view>
				<view class="lines-max_item_info_box">
					<view class="lines-max_item_info_box_price">
						7890
					</view>
					<view class="lines-max_item_info_box_tag">
						满6人减300
					</view>
				</view>
				<view class="lines-max_item_info_detail_user">

				</view>
			</view>

		</view>
	</view>
</template>

<script>

</script>

<style lang="scss">
	.lines-max {
		&_item {
			margin: 20rpx 20rpx 40rpx;
			background: #fff;
			border-radius: 20rpx;
			position: relative;
			
			&_img{
				width: 100%;
				height: 400rpx;
				border-top-right-radius: 20rpx;
				border-top-left-radius: 20rpx;
			}

			&_info {
				padding: 30rpx;

				&_box {
					display: flex;
					align-items: center;

					&_tag {
						background: #ffebeb;
						color: #f30;
						font-size: 22rpx;
						padding: 2rpx 10rpx;
						border-radius: 5rpx;
					}

					&_price {
						font-size: 36rpx;
						font-weight: bold;
						display: flex;
						align-items: flex-end;
						color: #f00;
						margin-right: 30rpx;

						&::before {
							content: "￥";
							font-size: 24rpx;
						}

						&::after {
							content: "起";
							font-size: 24rpx;
							font-weight: normal;
							color: #999;
							margin-bottom: 5rpx;
							margin-left: 5rpx;
						}
					}
				}

				&_title {
					font-weight: bold;
					overflow: hidden;
					text-overflow: ellipsis;
					display: -webkit-box;
					-webkit-line-clamp: 2;
					-webkit-box-orient: vertical;
					margin: 10rpx 0;
					font-size: 32rpx;
					color: #333;
				}

				&_detail {
					color: #999;
					font-size: 24rpx;
				}
			}

			&_top {
				width: 80rpx;
				height: 70rpx;
				background: linear-gradient(to top, #bf8600, #bf8600, #f7b600);
				text-align: center;
				padding: 6rpx 0;
				font-weight: bold;
				border-radius: 10rpx;
				color: #fff;
				line-height: 36rpx;
				position: absolute;
				top: -10rpx;
				left: 30rpx;
				z-index: 99;

				&_text {
					font-size: 24rpx;
				}

				&_number {
					font-size: 36rpx;
				}

				&::before {
					content: "";
					display: block;
					border-top: 15rpx solid #bf8600;
					border-right: 38rpx solid transparent;
					border-left: 38rpx solid transparent;
					border-bottom: 38rpx solid transparent;
					position: absolute;
					bottom: -50rpx;
					left: 4rpx;

				}
			}
		}
	}
</style>